﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;

namespace KTV项目
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void 新增歌手ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //打开增加歌手窗体
            xinzen yi = new xinzen();
            yi.MdiParent = this;
            yi.Show(); 
        }

        private void 查询歌手信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //打开查询歌手窗体
            chaxun cha = new chaxun();
            cha.MdiParent = this;
            cha.Show();
        }

        private void 查询歌曲信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //打开查询歌曲窗体
            chazhao cha = new chazhao();
            cha.MdiParent = this;
            cha.Show();
        }

        private void 新增歌曲ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //打开新增歌曲窗体
            bianji bian = new bianji();
            bian.MdiParent = this;
            bian.Show();
        }

        private void 退出ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //结束整个程序
            Application.Exit();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void 关于我们ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //打开关于窗体
            guanyu yu = new guanyu();
            yu.Show();
        }

        private void 歌手照片路径ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //打开选择的照片路径
            FolderBrowserDialog fd = new FolderBrowserDialog();
            fd.SelectedPath = "D:\\Songs";
            DialogResult dr = fd.ShowDialog();
        }

        private void 歌曲路径ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //打开选择的歌曲选择路径
            FolderBrowserDialog fd = new FolderBrowserDialog();
            fd.SelectedPath = "D:\\Songs";
            DialogResult dr = fd.ShowDialog();
        }
    }
}
